package com.wd.amodel.fragment;

import android.view.View;
import android.widget.TextView;

import com.wd.amodel.R;
import com.wd.base.ui.BaseFragment;
import com.wd.base.util.ViewUtils;

//import androidx.lifecycle.ViewModelProviders;

/**
 * NA<BR>
 *
 * @author w4425
 * @version [V1.0.0, 2021/4/21]
 * @since V1.0.0
 */
public class DemoFragment extends BaseFragment {
    private TextView tvUser;

    /**
     * 获取MainFragment实例对象
     *
     * @return MainFragment
     */
    public static DemoFragment newInstance() {
        return new DemoFragment();
    }

    @Override
    protected String getLogTag() {
        return "MainFragment";
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_demo;
    }

    @Override
    protected void initView(View view) {
        tvUser = ViewUtils.findViewById(view, R.id.tv_user);
        tvUser.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                DemoDialogFragment dialogFragment = new DemoDialogFragment();
                dialogFragment.show(getActivity().getSupportFragmentManager(), "dialog");
            }
        });
    }

    @Override
    protected void initViewModel() {
    }


    @Override
    protected void loadData() {
    }

}